﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Core.IBusiness.IPushModule.Model
{
    /// <summary>
    /// 订单发货消息推送
    /// </summary>
    public class OrderShipmentModel : BaseShopPush<OrderShipmentContent>
    {
    }

    public class OrderShipmentContent
    {
        /// <summary>
        /// 消息类型
        /// </summary>
        public string Type
        {
            get
            {
                return "order-shipment";
            }
        }

        /// <summary>
        /// 订单模型
        /// </summary>
        public OrderModel Order { get; set; }

        /// <summary>
        /// 产品信息
        /// </summary>
        public List<ProductModel> Products { get; set; }

        /// <summary>
        /// 物流信息
        /// </summary>
        public ShipmentModel Shipment { get; set; }
    }

    public class ShipmentModel 
    {
        /// <summary>
        /// 类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// type == 0 ? 快递编号 ： 手机号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; }
    }

}
